package com.blue.firecat.serivce;

import com.blue.firecat.contants.Result;
import com.blue.firecat.entity.Game;
import com.blue.firecat.entity.GameExample;
import com.blue.firecat.entity.User;
import com.blue.firecat.entity.UserExample;
import com.blue.firecat.vo.UserVo;

import java.util.List;

/**
 * @描述
 * @时间 2017-6-22 13:43
 * @作者 肖亦鸣
 */
public interface UserService {

    Result<User> selectByPrimaryKey(Long id,User user);

    Result<List<User>> selectByExample(User user);

    Result<User> insertSelective(User user,User userLogin);

    Result<User> updateByPrimaryKeySelective(User record);

    Result<User> deleteByPrimaryKey(User user,Long id);

    List<User> selectByExample(UserExample example);

    /**
     * 支持 用户名,手机号,邮箱登陆
     *
     * @param user
     * @return
     */
    Result<User> login(User user);

    Result<List<User>> getAllBeater();

    Result<List<User>> getAllCustom();

    Result<User> stopUser(User user, Long userId, Integer status);

    Result<User> updatePassword(UserVo userVo);

    Result<User> register(User user);

    Result<User> forgetPassword(User user);
}
